package cn.exrick.xboot.modules.transport.service.impl;

import cn.exrick.xboot.modules.transport.mapper.CompanyDepositDetailsMapper;
import cn.exrick.xboot.modules.transport.entity.CompanyDepositDetails;
import cn.exrick.xboot.modules.transport.param.QueryCompanyDepositDetailsParam;
import cn.exrick.xboot.modules.transport.service.CompanyDepositDetailsService;
import cn.exrick.xboot.modules.transport.vo.CompanyDepositDetailsVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 物流公司抵押金明细信息接口实现
 * @author gj
 */
@Slf4j
@Service
@Transactional
public class CompanyDepositDetailsServiceImpl extends ServiceImpl<CompanyDepositDetailsMapper, CompanyDepositDetails> implements CompanyDepositDetailsService {

    @Autowired
    private CompanyDepositDetailsMapper companyDepositDetailsMapper;

    @Override
    public CompanyDepositDetailsVo getDepositDetailsById(Long id) {
        //通过mapper查询物流公司抵押金明细信息
        return companyDepositDetailsMapper.getDepositDetailsById(id);
    }

    @Override
    public IPage<CompanyDepositDetailsVo> getByCondition(Page page, QueryCompanyDepositDetailsParam param) {
        return companyDepositDetailsMapper.getByCondition(page, param);
    }


}